'use strict';

const Controller = require('egg').Controller;

class RestfulController extends Controller {
  async find() {
    const { ctx } = this;
    ctx.body = 'restful find';
  }

  async get() {
    const { ctx } = this;
    ctx.body = 'restful get';
  }

  async create() {
    const { ctx } = this;
    ctx.body = 'restful create';
  }

  async patch() {
    const { ctx } = this;
    ctx.body = 'restful patch';
  }

  async remove() {
    const { ctx } = this;
    ctx.body = 'restful remove';
  }
}

module.exports = RestfulController;
